package com.novel.download.utils;

import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;

public class ThreadUtils {

    private static ExecutorService executorService = Executors.newFixedThreadPool(20);

    public static <T> Future<T> submit(Callable<T> callable) {
        return executorService.submit(callable);
    }
}
